index = 0
for i in range(1,8):
    for j in range(i+1,8):
        index += 1
        print(i," ",j)
print("总共组合数为：",index)